package com.geektime.hello;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class SplitDemo {
    public static void main(String[] args) {
        List<Long> list = new ArrayList<>();
        list.add(1L);
        list.add(2L);
        list.add(3L);
        String symbol = StringUtils.join(list.toArray(), ",");
        System.out.println("symbol = " + symbol);
    }
}
